Setting the properties of a movie clip is a more widely used statement in Flash as. In the Actions | "Global Functions" | "Movie Clip Control", we can set them by SetProperty. By SetProperty we can set the location, size, visibility, and so on for the movie clip.
1, first of all, we have a comprehensive understanding of the SetProperty function. We open the as pa
Movie clips in Flash can be said to be the most use of a component, then for its as is also a lot.
Before I explain, I'd like to rewrite the rules for editing as as the last time the button was spoken, which is written on the film clip itself and on the timeline.
First, let's start with a simple little example. (
Click here to download the source file. )
Maybe you can make a motion animation of a small ba
Event
Method
Description
On (Press)
Onpress
Left mouse button pressed
On (release)
Onrelease
Mouse click (left button pressed and released)
On (releaseoutside)
Onreleaseoutside
After the left mouse button is pressed and released outside the buttons
On (rollover)
Onrollover
Hover the mouse over the button
On (RollOut)
Onrollout
Mouse moves outside the button response area
On (Dr
clip named Nwemc }Three, drag command and stop drag command1. Method: StartDrag (Target,lock,left,top,right,bottom) and Stopdrag () (it does not have any parameters)2. Explanation: Target is the destination path of the movie clip to be dragged, and lock is the location where the movie clip is selected to be locked in the center of the mouse or locked in the mouse click (The lock is a Boolean value),The
Learn AS3.0 rookie take off-download movie clips from storage
In the flash authoring environment, you can drag movie clips from the library onto the stage so that they appear in the SWF file. When you use ActionScript to add a movie clip, you actually add an instance of the
Create a new Flash document named Background.fla.Draw a blue circle on the stage.Select the Painted blue circle and choose Modify > Convert to symbol.Select the movie clips option, and then click OK.Select an instance on the stage, and then type MY_MC in the Instance Name text box in the property inspector.Select Frame 1th in the timeline, and then type the following code in the Actions panel:/* If Cacheasb
Create a new Flash document and save it as a embeddedmc.fla.Draw a new shape on the stage, or select File > import > Import to Stage, and select an image that is about 100 times 100 pixels high like pixels.Select the shape on the stage or the image you imported in the previous step, and then press F8 to open the Convert to Symbol dialog box and convert it.Set the behavior to the movie clip and enter a descriptive symbol name. Select the square on the
The Creates a new Flash document and saves it as a adjustfilter.fla. Add the following ActionScript to frame 1th of the timeline: import Flash.filters.BlurFilter;
code is as follows
copy code
This.createemptymovieclip (" HOLDER_MC "); Holder_ Mc.createemptymovieclip ("IMG_MC", 20); Holder_mc.img_mc.loadMovie ("/images/image2.jpg"); Holder_mc.filters = [New Blurfilter (10, 10, 2)]; holder_mc._x = 75; holder_mc._y = n; Holder_mc.onmousemove = function (
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.